package framework.utils;

public class StringUtils {
	public static boolean isNotBlank(String str) {
		return !isEmpty(str);
	}

	public static boolean isNotBlank(String... strings) {
		for (String str : strings) {
			if (isEmpty(str)) {
				return false;
			}
		}
		return true;
	}

	public static boolean isEmpty(String str) {
		if (str == null || str.trim().length() == 0) {
			return true;
		}
		return false;
	}

	public static float getCount(String text) {
		float chineseCount = (text.getBytes().length - text.length()) / 2;
		return chineseCount + (text.length() - chineseCount) / 2;
	}
	
	
}
